<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Happy feet</title>
  <meta name="description" content="数据配置-编辑">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <meta name="apple-mobile-web-app-title" content="数据配置-编辑" />
  <% include("/pager/common/quote.html"){} %>  
</head>
<body>
	<div class="admin-content">
		<div class="am-cf am-padding">
			<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">数据配置</strong> / <small>数据编辑 </small></div>
		</div>
		<hr/>
		<div class="am-g am-padding">
			<form class="am-form am-form-horizontal " name="editForm" id="editForm" method="post" >
			    <div class="am-form-group " >
			      <input type="hidden"  name='id' id="edit_id" value="${config.id!}"/>
			      <label for="edit_key" class="am-u-sm-4 am-u-md-2 am-form-label">Key</label>
			      <div class="am-u-sm-8 am-u-md-4 am-u-end">
			      	<input type="text" class="" id="edit_key" name="key" data-foolish-msg="Key，不能为空！" value="${config.key!}" placeholder="输入key" required />
			      </div>
			    </div>
			
				<div class="am-form-group">
			      <label for="edit_field" class="am-u-sm-4 am-u-md-2 am-form-label">Field</label>
			      <div class="am-u-sm-8 am-u-md-4 am-u-end" >
			      	<input type="text" class="" id="edit_field"  name="field"  value="${config.field!}" placeholder="输入Field" data-foolish-msg="field，不能为空！" >
			      </div>
			    </div>
			    
			    <div class="am-form-group">
			      <label for="edit_value" class="am-u-sm-4 am-u-md-2 am-form-label">Value</label>
			      <div class="am-u-sm-8 am-u-md-4 am-u-end" >
			      	<input type="text" class="" id="edit_value"  name="value"  value="${config.value!}" placeholder="输入value" data-foolish-msg="value，不能为空！" >
			      </div>
			    </div>
			    
			    <div class="am-form-group">
			      <label for="edit_sort" class="am-u-sm-4 am-u-md-2 am-form-label">排序</label>
			      <div class="am-u-sm-8 am-u-md-4 am-u-end" >
			      	<input type="number" class="" id="edit_sort"  name="sort" value="${config.sort!}" placeholder="排序号">
			      </div>
			    </div> 
			    
			    <div class="am-form-group">
			      <label for="edit_state1" class="am-u-sm-4 am-u-md-2 am-form-label">状态</label>
			      <div class="am-u-sm-8 am-u-md-4 am-u-end" >
			      	<label class="am-radio am-radio-inline  am-text-meddle" >
				        <input type="radio" class="" name="state" id="edit_state1" value="1" ${isEmpty(config)?'checked' :''} ${!isEmpty(config) && (config.state==1 ||isEmpty(config.state)) ? 'checked' : ''}> 正常
				    </label>
				    <label class="am-radio am-radio-inline am-text-meddle">
				        <input type="radio" name="state" id="edit_state2" value="0"  ${!isEmpty(config) && config.state== 0 ? 'checked' : ''} > 禁用
				    </label>
				  </div>
			    </div>
			    
			    <div class="am-form-group">
			    	<label for="edit_remark" class="am-u-sm-4 am-u-md-2 am-form-label">备注</label>
			    	<div class="am-u-sm-12 am-u-md-6 am-u-end">
			    		<textarea class="" rows="3" id="edit_remark" name="remark">${config.remark!}</textarea>
			    	</div>
			    </div>
			    
			    <p><hr/></p>
			    <div class="am-g">
			    	<div class="am-u-sm-8 am-u-md-4">&nbsp;</div>
			    	<div class="am-u-sm-16 am-u-md-8 am-u-end">
			    		<button type="submit" class="am-btn am-btn-primary am-disabled" >  保  存  </button>
			    		<button type="button" class="am-btn am-btn-default btn-loading-example" id="cancelBtn" >  取 消  </button>
			    	</div>
			    </div>
	  	  </form>
		</div>
	</div>
</body>
</html>